package com.warframe.entity.database;

import javax.persistence.*;
import java.util.Objects;

@Entity
@Table(name = "WikiTranslate", schema = "main", catalog = "")
public class WikiTranslateEO {
    private String itemEn;
    private String itemCn;

    @Id
    @Column(name = "item_en")
    public String getItemEn() {
        return itemEn;
    }

    public void setItemEn(String itemEn) {
        this.itemEn = itemEn;
    }

    @Basic
    @Column(name = "item_cn")
    public String getItemCn() {
        return itemCn;
    }

    public void setItemCn(String itemCn) {
        this.itemCn = itemCn;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        WikiTranslateEO that = (WikiTranslateEO) o;
        return Objects.equals(itemEn, that.itemEn) &&
                Objects.equals(itemCn, that.itemCn);
    }

    @Override
    public int hashCode() {

        return Objects.hash(itemEn, itemCn);
    }
}
